package it.poli.IA.TilesGame;

public enum TileActionEnum {

		up, down, left, right;

		public TileActionEnum getOpposite() {
			switch (this) {
			
			case down:
				return  up;
			
			case up:
				return  down;
			
			case left:
				return  right;
		
			case right:
				return  left;

			default:
				return null;
			}
		}

		public String toGraphical() {
			switch (this) {
			
			case down:
				return  "V";
			
			case up:
				return  "^";
			
			case left:
				return  "<";
		
			case right:
				return  ">";

			default:
				return null;
			}
		}
}
